package entity;

/**
 * 商品类
 */
public class Goods {
    private int goodsID;//商品编号
    private String goodsName;//商品名称
    private String describe;//商品描述
    private String goodsTime;//上架时间
    private double price;//价格
    private int inventory;//库存
    private String filePath;//图片路径
    private String picturename;//图片名称
    private int state;//状态
    private String units; //商品单位
    private int classifys;//商品的分类

    public int getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(int goodsID) {
        this.goodsID = goodsID;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getGoodsTime() {
        return goodsTime;
    }

    public void setGoodsTime(String goodsTime) {
        this.goodsTime = goodsTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getPicturename() {
        return picturename;
    }

    public void setPicturename(String picturename) {
        this.picturename = picturename;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public int getClassifys() {
        return classifys;
    }

    public void setClassifys(int classifys) {
        this.classifys = classifys;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goodsID=" + goodsID +
                ", goodsName='" + goodsName + '\'' +
                ", describe='" + describe + '\'' +
                ", goodsTime='" + goodsTime + '\'' +
                ", price=" + price +
                ", inventory=" + inventory +
                ", filePath='" + filePath + '\'' +
                ", picturename='" + picturename + '\'' +
                ", state=" + state +
                ", units='" + units + '\'' +
                ", classifys='" + classifys + '\'' +
                '}';
    }
}
